<template>
  <div>
    <el-button @click="clearTodos" type="danger" class="clear-all">清除全部</el-button>
  </div>
</template>

<script setup>
const emit = defineEmits(['clear-todos']);

function clearTodos() {
  emit('clear-todos');
}
</script>

<style scoped>
.clear-all {
  margin-top: 20px;
}
</style>